﻿@model Mestedur.ViewModels.EditorViewModels.EditorTopicViewModel

@{
    ViewBag.Title = "EditTopic";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Редактировать тему</h2>
<form method=post>

<div class="text"> 
<table class="tableEdit"> 
  <tr>
    <td>@Html.LabelFor(x=>x.NumberInOrder)</td>
    <td>@Html.EditorFor(x=>x.NumberInOrder)</td>
  </tr>

<tr>
    <td>@Html.LabelFor(x=>x.TopicName)</td>
    <td>@Html.EditorFor(x=>x.TopicName)</td>
</tr>

<tr>
    <td>@Html.LabelFor(x=>x.CourseId)</td>
    <td>@Html.DropDownListFor(x=>x.CourseId, new SelectList(ViewBag.Courses, "Id", "CourseName", Model.CourseId))</td>
  </tr>

</table>
</div> 

<center><input type=submit value="Сохранить" /></center>
</form>